<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets" 
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:t="https://code.google.com/p/rad-framework/taglib" 
	xmlns:tt="https://code.google.com/p/rad-framework"
	xmlns:s="http://jboss.com/products/seam/taglib">

	<c:if
		test="#{folder.renderTable and (!folder.orderable or currentTree.editor.viewMode)}">
		<ui:include src="/themes/default/includes/folder-table.xhtml">
			<ui:param name="folder" value="#{folder}" />
			<ui:param name="renderDelete" value="true" />
		</ui:include>
	</c:if>

	<c:if test="#{folder.renderPicker}">
		<a4j:form id="#{folder.id}PickerForm">
			<tt:picker id="#{folder.id}" picker="#{folder.picker}"
				reRender="#{folder.id}TP" />
		</a4j:form>
	</c:if>

	<c:if
		test="#{folder.renderTable and folder.orderable and currentTree.editor.editMode}">
		<ui:include src="/themes/default/includes/folder-orderinglist.xhtml">
			<ui:param name="folder" value="#{folder}" />
			<ui:param name="renderDelete" value="true" />
		</ui:include>
	</c:if>

	<c:if test="#{folder.renderQuickAdd or folder.renderOneToOneEdit}">
		<rich:spacer width="10" height="5"/>
		<hr class="rad-framework-horizontal-separator"/>
		
		<ui:include src="/themes/default/includes/quick-add.xhtml" />
		
	</c:if>
	
	<c:if test="#{folder.renderAdd}">
		<rich:spacer width="10" height="5"/>
		<hr class="rad-framework-horizontal-separator"/>
		<a4j:form id="addLinkForm#{folder.id}">

			<a4j:commandLink styleClass="rad-framework-action-panel"
				action="#{folder.add}">
				<h:outputText styleClass="rad-framework-action-create"
					value="#{messages['Create']} #{folder.entityTypeText}" />
				<s:conversationId/>
			</a4j:commandLink>

		</a4j:form>
	</c:if>

</ui:composition>